home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / Fatal.Z / Fatal
Encoding:
Text File  |  1998-10-28  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      FFFFaaaattttaaaallll((((3333))))         22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))          FFFFaaaattttaaaallll((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       Fatal    - replace functions with equivalents which succeed or
  10.       die
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           use Fatal    qw(open    close);
  14.  
  15.           sub juggle { . . . }
  16.           import Fatal 'juggle';
  17.  
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.       Fatal    provides a way to conveniently replace functions which
  21.       normally return a false value    when they fail with
  22.       equivalents which halt execution if they are not successful.
  23.       This lets you    use these functions without having to test
  24.       their    return values explicitly on each call.     Errors    are
  25.       reported via die, so you can trap them using $SIG{__DIE__}
  26.       if you wish to take some action before the program exits.
  27.  
  28.       The do-or-die    equivalents are    set up simply by calling
  29.       Fatal's import routine, passing it the names of the
  30.       functions to be replaced.  You may wrap both user-defined
  31.       functions and    overridable CORE operators (except exec,
  32.       system which cannot be expressed via prototypes) in this
  33.       way.
  34.  
  35.      AAAAUUUUTTTTHHHHOOOORRRR
  36.       Lionel.Cons@cern.ch
  37.  
  38.       prototype updates by Ilya Zakharevich    ilya@math.ohio-
  39.       state.edu
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.